package com.hursing.tractor;

import com.hursing.tractor.controller.Game;

import android.os.Bundle;
import android.app.Activity;
import android.content.res.Configuration;
import android.view.Menu;
import android.view.View;

public class MainActivity extends Activity {

	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.activity_main);
		
		View view = findViewById(R.id.gameview);
		Game.setupEnv(this, view);
	}

	@Override
	public boolean onCreateOptionsMenu(Menu menu) {
		// Inflate the menu; this adds items to the action bar if it is present.
		getMenuInflater().inflate(R.menu.main, menu);
		return true;
	}

	@Override
	public void onConfigurationChanged(Configuration newConfig) {    
	    super.onConfigurationChanged(newConfig);
	}
}
/*
主，Master：打几
主牌，Trump：副牌外的所有牌，含大小王、主、花主
*/

/*
 * TODO 抢庄、一开始无庄家，无人亮主即无主
 */